package com.tuyue.police.pojo;

import javax.persistence.*;

/**
 * @Author: 王金海
 * @Description: 企业
 * @Date: Created by Administrator on 2018/3/13.
 * @Modified By:
 */
@Entity
public class Enterprise {
    private long eId;
    private long eUserId;
    private String eName;
    private String eType;
    private String eSuperiorLeaders;
    private String eSecurityPersonnel;
    private String eSecurityPersonnelTel;
    private String eWeixin;
    private String eEMail;
    private Byte eAuthenticationType;
    private Byte eOrderType;
    private String eAddress;
    private Double eLon;
    private Double eLat;
    private String eImgLocation;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "e_id")
    public long geteId() {
        return eId;
    }

    public void seteId(long eId) {
        this.eId = eId;
    }

    @Basic
    @Column(name = "e_user_id")
    public long geteUserId() {
        return eUserId;
    }

    public void seteUserId(long eUserId) {
        this.eUserId = eUserId;
    }

    @Basic
    @Column(name = "e_name")
    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    @Basic
    @Column(name = "e_type")
    public String geteType() {
        return eType;
    }

    public void seteType(String eType) {
        this.eType = eType;
    }

    @Basic
    @Column(name = "e_superior_leaders")
    public String geteSuperiorLeaders() {
        return eSuperiorLeaders;
    }

    public void seteSuperiorLeaders(String eSuperiorLeaders) {
        this.eSuperiorLeaders = eSuperiorLeaders;
    }

    @Basic
    @Column(name = "e_security_personnel")
    public String geteSecurityPersonnel() {
        return eSecurityPersonnel;
    }

    public void seteSecurityPersonnel(String eSecurityPersonnel) {
        this.eSecurityPersonnel = eSecurityPersonnel;
    }

    @Basic
    @Column(name = "e_security_personnel_tel")
    public String geteSecurityPersonnelTel() {
        return eSecurityPersonnelTel;
    }

    public void seteSecurityPersonnelTel(String eSecurityPersonnelTel) {
        this.eSecurityPersonnelTel = eSecurityPersonnelTel;
    }

    @Basic
    @Column(name = "e_weixin")
    public String geteWeixin() {
        return eWeixin;
    }

    public void seteWeixin(String eWeixin) {
        this.eWeixin = eWeixin;
    }

    @Basic
    @Column(name = "e_e_mail")
    public String geteEMail() {
        return eEMail;
    }

    public void seteEMail(String eEMail) {
        this.eEMail = eEMail;
    }

    @Basic
    @Column(name = "e_authentication_type")
    public Byte geteAuthenticationType() {
        return eAuthenticationType;
    }

    public void seteAuthenticationType(Byte eAuthenticationType) {
        this.eAuthenticationType = eAuthenticationType;
    }

    @Basic
    @Column(name = "e_order_type")
    public Byte geteOrderType() {
        return eOrderType;
    }

    public void seteOrderType(Byte eOrderType) {
        this.eOrderType = eOrderType;
    }

    @Basic
    @Column(name = "e_address")
    public String geteAddress() {
        return eAddress;
    }

    public void seteAddress(String eAddress) {
        this.eAddress = eAddress;
    }

    @Basic
    @Column(name = "e_lon")
    public Double geteLon() {
        return eLon;
    }

    public void seteLon(Double eLon) {
        this.eLon = eLon;
    }

    @Basic
    @Column(name = "e_lat")
    public Double geteLat() {
        return eLat;
    }

    public void seteLat(Double eLat) {
        this.eLat = eLat;
    }

    @Basic
    @Column(name = "e_img_location")
    public String geteImgLocation() {
        return eImgLocation;
    }

    public void seteImgLocation(String eImgLocation) {
        this.eImgLocation = eImgLocation;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Enterprise that = (Enterprise) o;

        if (eId != that.eId) return false;
        if (eUserId != that.eUserId) return false;
        if (eName != null ? !eName.equals(that.eName) : that.eName != null) return false;
        if (eType != null ? !eType.equals(that.eType) : that.eType != null) return false;
        if (eSuperiorLeaders != null ? !eSuperiorLeaders.equals(that.eSuperiorLeaders) : that.eSuperiorLeaders != null)
            return false;
        if (eSecurityPersonnel != null ? !eSecurityPersonnel.equals(that.eSecurityPersonnel) : that.eSecurityPersonnel != null)
            return false;
        if (eSecurityPersonnelTel != null ? !eSecurityPersonnelTel.equals(that.eSecurityPersonnelTel) : that.eSecurityPersonnelTel != null)
            return false;
        if (eWeixin != null ? !eWeixin.equals(that.eWeixin) : that.eWeixin != null) return false;
        if (eEMail != null ? !eEMail.equals(that.eEMail) : that.eEMail != null) return false;
        if (eAuthenticationType != null ? !eAuthenticationType.equals(that.eAuthenticationType) : that.eAuthenticationType != null)
            return false;
        if (eOrderType != null ? !eOrderType.equals(that.eOrderType) : that.eOrderType != null) return false;
        if (eAddress != null ? !eAddress.equals(that.eAddress) : that.eAddress != null) return false;
        if (eLon != null ? !eLon.equals(that.eLon) : that.eLon != null) return false;
        if (eLat != null ? !eLat.equals(that.eLat) : that.eLat != null) return false;
        if (eImgLocation != null ? !eImgLocation.equals(that.eImgLocation) : that.eImgLocation != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (eId ^ (eId >>> 32));
        result = 31 * result + (int) (eUserId ^ (eUserId >>> 32));
        result = 31 * result + (eName != null ? eName.hashCode() : 0);
        result = 31 * result + (eType != null ? eType.hashCode() : 0);
        result = 31 * result + (eSuperiorLeaders != null ? eSuperiorLeaders.hashCode() : 0);
        result = 31 * result + (eSecurityPersonnel != null ? eSecurityPersonnel.hashCode() : 0);
        result = 31 * result + (eSecurityPersonnelTel != null ? eSecurityPersonnelTel.hashCode() : 0);
        result = 31 * result + (eWeixin != null ? eWeixin.hashCode() : 0);
        result = 31 * result + (eEMail != null ? eEMail.hashCode() : 0);
        result = 31 * result + (eAuthenticationType != null ? eAuthenticationType.hashCode() : 0);
        result = 31 * result + (eOrderType != null ? eOrderType.hashCode() : 0);
        result = 31 * result + (eAddress != null ? eAddress.hashCode() : 0);
        result = 31 * result + (eLon != null ? eLon.hashCode() : 0);
        result = 31 * result + (eLat != null ? eLat.hashCode() : 0);
        result = 31 * result + (eImgLocation != null ? eImgLocation.hashCode() : 0);
        return result;
    }
}
